[XEND] Merge VFB support for PV and HVM guests.
authorAlastair Tse <atse@xensource.com>
Wed, 31 Jan 2007 13:20:36 +0000 (13:20 +0000)
committerAlastair Tse <atse@xensource.com>
Wed, 31 Jan 2007 13:20:36 +0000 (13:20 +0000)
commitf492dd97fb674fbf6fe86f3052a50098ed169201
treea7e0bbbb8f359b27caca2b5532d76a2c7cf93701
parent6501ac6994ade911cc15bd64325dab4a3fffbcfc
[XEND] Merge VFB support for PV and HVM guests.

This patch merges the way VFB are represented inside Xend by making
HVM VNC consoles use the VFB as its configuration object.

It preserves the way options are specified through xm but will create
a new VFB device that is used by image.py to put vnc config into
qemu-dm's command line. The parsing is moved into image.py's
parseDeviceModel() rather than in configVNC().

Through the Xen API, you can create a 'console' of protocol 'rfb' and
end up with a VNC console, on both HVM and PV guests. The location of
the connecting port is stored in the location attribute of the console
object. This is updated on each XendDomainInfo.update() if it
changes.

Also fixes missing read of the vnclisten and HVM_boot from the
config when initialised via xm. Makes sure bootable attribute for VBD
is store as an int when making SXP config.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/scripts/test_hvm_create.py
tools/python/scripts/test_vm_create.py
tools/python/scripts/xapi.py
tools/python/xen/xend/XendAPI.py
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/image.py
tools/python/xen/xend/server/ConsoleController.py
tools/python/xen/xend/server/vfbif.py